/*
 * @version: 
 * @Author: yu
 * @Date: 2023-06-26 10:19:05
 * @LastEditors: Andy
 * @LastEditTime: 2023-07-06 22:38:30
 */
const { defineConfig } = require('@vue/cli-service')
module.exports = defineConfig({
  transpileDependencies: true,
  devServer: {
    open: true,  //设置自动打开
    port: 8080,    //设置端口
    proxy: {
      "/api": {
        target: 'http://localhost:3000',  //目标地址
        changeOrigin: true,  //允许跨域
        pathRewrite: { //路径重写
          "^/api": "http://localhost:3000"
        }
      }
    }
  }
})
